<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>百度指数后台管理</title>
<link type="text/css" rel="stylesheet" href="__PUBLIC__/style/common.css" />
<link type="text/css" rel="stylesheet" href="../Public/style/index.css" />
<script src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
<script>
	$(function(){
		$("#menu ul li a").click(function(){
			$("#menu ul li a").removeClass('current');
			$(this).addClass('current');
		});
	});
	
	function editPassword(){
		newPassword = prompt('请输入新密码');
		if(newPassword != ''){
			$.post('__APP__/Login/editPassword',{admin_password:newPassword},function(data){
				if(data == 1){
					location.href="__APP__/Login/logout";
				}
			});
		}
	}
</script>
</head>

<body>
	<div id="body">
    	<div id="header">
        	<div class="right">
            	<ul>
                	<li><a href="/" target="_blank">查看首页</a></li>
                    <li><a href="javascript:void(0)" target="_blank" onclick="editPassword()">修改密码</a></li>
                	<li><a href="__APP__/Login/logout">退出</a></li>
                </ul>
            </div>
        	当前管理员：<span class="red">{$Think.session.admin_user.admin_name}</span>
        </div>
        <div class="clear"></div>
        <div id="menu" class="left">
        	<ul>
            	<li><a href="__APP__/System" target="main">网站配置</a></li>
                <li><a href="__APP__/Order" target="main">订单查看</a></li>
                <li><a href="__APP__/User" target="main">会员管理</a></li>
                <li><a href="">指数查看</a></li>
				<li><a href="__APP__/Keywords/import" target="main">批量添加</a></li>
				<li><a href="__APP__/Flink" target="main">友情链接</a></li>
				<li><a href="__APP__/Email" target="main">邮件发送</a></li>
				
            </ul>
        </div>
        <div id="container" class="left">
           <iframe src="__APP__/Index/main" name="main" width="100%" height="98%" frameborder="0" scrolling="auto" id="main"></iframe>
        </div>
    </div>
</body>
</html>
